<template>
  <div>
    <!--详情菜单-->
    <el-card>
      <div slot="header">
        <span>数据报表</span>
      </div>
      <el-menu router text-color="#999999" active-text-color="#00c3ff" :default-active="$route.path" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose">
        <el-menu-item index="/data/report">
          <font-awesome-icon :icon="['far', 'comment-dots']" class="el-icon-document"></font-awesome-icon>
          <span>文章曝光</span>
        </el-menu-item>
        <el-menu-item index="/data/setting">
          <i class="el-icon-setting"></i>
          <span>粉丝分布</span>
        </el-menu-item>
        <el-menu-item index="/data/myinfo">
          <font-awesome-icon :icon="['far', 'edit']" class="el-icon-document"></font-awesome-icon>
          <span>文章热度</span>
        </el-menu-item>
      </el-menu>
    </el-card>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  created () {},
  // DOM对象加载完成时
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  },
  computed: {},
  name: 'reportMenu'
}
</script>

<style lang="less" scoped>
.el-menu {
  border-right: none;
}
.svg-icon {
  width: 24px !important;
  color: #999999;
}
</style>
